package com.huangliusong.quickstart;

import com.lmax.disruptor.EventHandler;

/**
 * @author huangliusong
 * @since 2018/11/25
 * {@link }
 */
public class OrderEventHandler implements EventHandler<OrderEvent> {

    @Override
    public void onEvent(OrderEvent orderEvent, long l, boolean b) throws Exception {
        //拿到具体的even对象
        System.out.println("消费者:"+orderEvent.getValue());

    }
}
